#include <iostream>
#include "httpserver.h"
#include "Daemon.h"

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        std::cout << "Usage: " << argv[0] << " port[1024+]" << std::endl;
        exit(1);
    }
    uint16_t port = atoi(argv[1]);
    httpserver http(port);
    Daemon();
    http.Start();
    return 0;
}